package com.lening.collect.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.collect.dto.PledgeDTO;
import com.lening.collect.pojo.Pledge;
import com.lening.collect.mapper.PledgeMapper;
import com.lening.collect.service.IPledgeService;
import com.lening.collect.vo.PledgeVo;
import com.lening.common.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 杨军
 * @since 2024-05-31
 */
@Service
public class PledgeServiceImpl extends BaseServiceImpl<PledgeMapper, Pledge, PledgeDTO> implements IPledgeService {
    @Autowired
    private PledgeMapper mapper;

    @Override
    public Page<?> page(PledgeDTO pledgeDTO) {
        return mapper.get(pledgeDTO);
    }
//
//    @Override
//    public Page<PledgeVo> get(PledgeDTO pledgeDTO) {
//        return mapper.get(pledgeDTO);
//    }

    @Override
    public PledgeVo getById(Long id) {
        return mapper.getid(id);
    }

    @Override
    public Page<PledgeVo> getByStatusPage(PledgeDTO pledgeDTO) {
        return mapper.getByStatusPage(pledgeDTO);
    }

    @Override
    public int updateStatusPayInt(Long id) {
        return mapper.updateStatusPayInt(id);
    }
}
